package com.mbc.common.dao;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;

import com.mbc.common.data.CurrencyDataList;
import com.mbc.common.data.CurrencyReferenceData;
import com.mbc.common.entities.Currency;
import com.mbc.common.entities.CurrencyRpt;

public interface CurrencyDAO {
	void create(Currency entity)throws SQLException;
	void update(Currency entity)throws SQLException;
	void delete(long key)throws SQLException;
	Currency find(long key)throws SQLException;
	CurrencyDataList getList(Currency cri) throws SQLException;
	ArrayList<Currency> findAll()throws SQLException;
	ArrayList<CurrencyReferenceData> getCurrencyRefList()throws SQLException;
	ResultSet prepareCurrencyData(String fromCode, String toCode)throws SQLException;
	/** MBC **/
	public Currency findCurrencyByCode(String code) throws SQLException;
	ResultSet prepareCurrencyReport(CurrencyRpt info) throws SQLException;
}
